﻿#include "WRWorkDriver.h"
#include "WRWorkDevice.h"

//初始化工作驱动。
WRWorkDriver::WRWorkDriver(const WRWorkInformation& info, WRWorkDaemon* daemon)
    : WRWorkEntity(info), m_daemon(daemon)
{
    //add code here
}

//清理当前对象所占用的相关资源。
WRWorkDriver::~WRWorkDriver()
{
    for(WRu i = 0, l = m_devices.count(); i < l; ++i)
    {
        WRWorkDevice* entry = m_devices[i];
        delete entry;
    }
}
